



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <base href="http://work.okpss.cn:58080/" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>我的错题集</title>
    <link rel="shortcut icon" href="favicon.ico" />
    <link rel="stylesheet" type="text/css" href="skins/default/style.css" />
    <link rel="stylesheet" type="text/css" href="inc/js/pagination/pagination.css" />

    <script src="inc/js/jquery.js" type="text/javascript"></script>
    <script src="inc/js/baseutil.js" type="text/javascript"></script>

    <script src="inc/js/layer/layer.js" type="text/javascript"></script>

    <style>
        .tm_collection{margin: 10px 10px; position: relative;}
        .tm_collection p{ text-align:left; margin: 0 0; padding: 0 40px 0 0; white-space:normal; }
        .tm_collection h1{ text-align:left; margin: 0 0; padding: 0 40px 0 0; font-weight: normal; font-size: 12px;}
        .tm_collection h2{ text-align:left; margin: 0 0; padding: 0 40px 0 0; font-weight: normal; font-size: 12px;}
        .tm_collection h5{ text-align:left; margin: 0 0; padding: 0 0; font-weight: normal; font-size: 12px; position: absolute; top: 0; right: 5px}
        .tm_collection h5 a{display: block; width: 16px; height: 16px; background: url('skins/images/icos/delete.png') no-repeat;}
        .tm_collection hr{height:1px;border:none;border-top:1px dashed #eee;}
        .tm_collection div{text-align:left; color:#aaa; line-height:20px;}

        .tm_collection ul{margin:5px 0; padding:0; list-style:none; text-align:left}
        .tm_collection ul li{}
        .tm_collection ul li p{display:inline}

    </style>

    <script type="text/javascript">

        $(document).ready(function() {

        });

        var tmCollection = {
            doDelCollection : function(cid){
                var _confirm =  window.confirm('删除操作无法恢复，您确定要删除吗？');
                if(_confirm){
                    $.ajax({
                        type: "POST",
                        url: "http://work.okpss.cn:58080/user/collection/delete.do",
                        data: {"id":cid, "t":Math.random()},
                        dataType: "json",
                        success: function(ret){
                            if(ret["code"] == "ok"){
                                window.location.reload();
                            }else{
                                alert('操作失败');
                            }
                        },
                        error:function(){
                            alert('系统忙，请稍后再试');
                        }
                    });

                }
            },


            doClearCollection : function(cid){
                var _confirm =  window.confirm('删除操作无法恢复，您确定要删除吗？');
                if(_confirm){
                    $.ajax({
                        type: "POST",
                        url: "http://work.okpss.cn:58080/user/collection/clear.do",
                        data: {"t":Math.random()},
                        dataType: "json",
                        success: function(ret){
                            if(ret["code"] == "ok"){
                                window.location.reload();
                            }else{
                                alert('操作失败');
                            }
                        },
                        error:function(){
                            alert('系统忙，请稍后再试');
                        }
                    });

                }
            },

            showTypes : function(){
                layer.open({
                    type: 2,
                    title: '收藏夹分类',
                    shadeClose: true,
                    shade: 0.8,
                    area: ['650px', '480px'],
                    content: 'user/collection/types.thtml'
                });
            }
        };

    </script>

</head>

<body>

<div class="tm_main">

    <div class="tm_container">
        <ul class="tm_breadcrumb">
            <li><a href="common/welcome.thtml">首页</a> <span class="divider">&gt;</span></li>
            <li class="active">我的错题集</li>
        </ul>
    </div>

    <div class="tm_container">
        <div class="tm_navtitle">
            <h1>我的错题集</h1>
            <span>试题收藏夹，如下列表是我收藏过的考试试题，点击可以进行查看和删除操作</span>
        </div>
    </div>

    <div class="tm_container">
        <div class="tm_navbuttons">
            <a href="javascript:void(0);"onclick="tmCollection.doClearCollection();">清空收藏</a>
            <a href="javascript:void(0);"onclick="tmCollection.showTypes();">收藏夹分类</a>
        </div>
    </div>

    <div class="tm_container">
        <table width="100%" cellpadding="0" border="0">
            <tr>
                <td valign="top">

                    <form action="user/collection/list.thtml" method="get">
                        <div style="padding:8px; border:solid 1px #eee;">
                            收藏夹分类 :
                            <select class="tm_selects" name="c_tid">
                                <option value="">全部</option>

                            </select> &nbsp;
                            <button class="tm_btns" type="submit">搜索</button>
                        </div>

                        <table width="100%" border="0" class="tm_table_list">
                            <tbody>

                            <tr>
                                <td>
                                    <div class="tm_collection">



                                        <p>湿滑路面制动过程中，发现车辆偏离方向，以下做法正确的是？</p>





                                        <ul>
                                            <li>A . 任意踩制动踏板</li><li>B . 连续轻踩轻放制动踏板</li><li>C . 用力踩制动踏板</li><li>D . 不要踩制动踏板</li>
                                        </ul>
                                        <h1><b>标准答案 : </b>D</h1>
                                        <h2><b>用户答案 : </b>B</h2>






                                        <h5><a href="javascript:void(0);" onclick="tmCollection.doDelCollection('22ca78bb-1bff-4792-98f6-b0ba08b82f28')"></a></h5>
                                        <hr/>
                                        <div>2021-04-07 20:36:37</div>
                                        <div></div>
                                    </div>
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    <div class="tm_collection">



                                        <p>上道路行驶的机动车有哪种情形交通警察可依法扣留车辆？</p>





                                        <ul>
                                            <li>A . 未放置检验合格标志</li><li>B . 未携带身份证</li><li>C . 未放置城市环保标志</li><li>D . 未携带机动车登记证书</li>
                                        </ul>
                                        <h1><b>标准答案 : </b>A</h1>
                                        <h2><b>用户答案 : </b>A</h2>






                                        <h5><a href="javascript:void(0);" onclick="tmCollection.doDelCollection('d3fcc152-8e32-45ba-a76b-9eff01c0e0eb')"></a></h5>
                                        <hr/>
                                        <div>2021-04-07 20:29:24</div>
                                        <div></div>
                                    </div>
                                </td>
                            </tr>

                            </tbody>
                        </table>
                    </form>

                    <table width="100%" cellpadding="10" border="0" class="tm_table_list">
                        <tfoot>
                        <tr>
                            <td>
                                <div class="tm_pager_foot">首页&nbsp; 上一页&nbsp; 下一页&nbsp; 尾页&nbsp; &nbsp;共2条记录 &nbsp;  <input type="text" size="1" maxlength="3" class="tm_txt" value="1" onkeyup="tm_fn_page_to(event,'http://work.okpss.cn:58080/user/collection/list.thtml?',this.value)"  />  /1 页&nbsp; 每页显示 <select id="tm_pager_pagesize" class="tm_select" onchange="tm_fn_pagesize('http://work.okpss.cn:58080/user/collection/list.thtml?',this.value)"><option value="10" selected>10</option><option value="20" >20</option><option value="50" >50</option><option value="100" >100</option></select> 条</div>
                            </td>
                        </tr>
                        </tfoot>
                    </table>

                </td>
            </tr>
        </table>
    </div>


</div>

</body>
</html>
